#find package(BLAS REQUIRED)
#add_executable(my_reduce_v1_share_memory my_reduce_v1_share_memory.cu)
#add_executable(my_reduce_v3_no_bank_conflict my_reduce_v3_no_bank_conflict.cu)
add_executable(my_reduce_v6_completely_unroll my_reduce_v6_completely_unroll.cu)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
   target_compile_options(my_reduce_v6_completely_unroll PRIVATE $<$<COMPILE_LANGUAGE:CUDA>: -G>)
endif()

#add_executable(cudaLesson2 cudaLesson2.cu)
#add_executable(cudaLesson4-vector-addition cudaLesson4-vector-addition.cu)
#add_executable(cudaLeson4-matmul-basic cudaLesson4-matmul-basic.cu)

#target link libraries(my_reduce_vo global memory PRIVATE CUDA::cudart ${CUDA cUblaS LIBRARY} ${BLAS LIBRARIES})
#if(CMAKE_BUILD_TYPE STREQUAL "Debug")
 #   target_compile_options(my_reduce_v0_global_memory PRIVATE $<$<COMPILE_LANGUAGE:CUDA>: -G>)
#endif()
# add executable(my reduce v1 shared memory my reduce_vi shared memory.cu)
# tarpet link libraries(my reduce_v1 shared memory PRIVATE CUDA::cudart ${CUDA CUblaS LIBRARY} ${BLAS LIBRARIES})if(CMAKE BUILD TYPE STREQUAL "Debug")
# target_compile_ options(my_reduce_v1_shared memOry PRIVATE $<$<COMPILE _LANGUAGE :CUDA>: -G>)endif